package com.keta.foundation.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;



@Entity
@Table(name = "t_monitor")
public class Monitor implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	/**
	 * 
	 */
	/**
	 * 入口地址
	 */
	@Length(max = 30)
	@Column(length = 30)
	private String uri;
	
	/**
	 * 执行时间
	 */
	@Column(length = 10)
	private Integer exetime;
	
	/**
	 * 后台执行时间
	 */
	@Column(length = 10)
	private Integer javaExetime;
	
	/**
	 * 模板渲染时间
	 */
	@Column(length = 10)
	private Integer tplExetime;
	
	/**
	 * 用户名
	 */
	@Length(max = 255)
	@Column(length = 255)
	private String username;
	
	/**
	 * IP
	 */
	@Length(max = 30)
	@Column(length = 30)
	private String ip;
	
	/**
	 * 创建时间
	 */
	@Column(length = 19)
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;
	
	
	/**
	 * set
	 */
	public void setId(Long id){
		this.id = id;
	}
	
	/**
	 * get
	 */
	public Long getId(){
		return this.id;
	}
		
	/**
	 * set入口地址
	 */
	public void setUri(String uri){
		this.uri = uri;
	}
	
	/**
	 * get入口地址
	 */
	public String getUri(){
		return this.uri;
	}
		
	/**
	 * set执行时间
	 */
	public void setExetime(Integer exetime){
		this.exetime = exetime;
	}
	
	/**
	 * get执行时间
	 */
	public Integer getExetime(){
		return this.exetime;
	}
		
	/**
	 * set后台执行时间
	 */
	public void setJavaExetime(Integer javaExetime){
		this.javaExetime = javaExetime;
	}
	
	/**
	 * get后台执行时间
	 */
	public Integer getJavaExetime(){
		return this.javaExetime;
	}
		
	/**
	 * set模板渲染时间
	 */
	public void setTplExetime(Integer tplExetime){
		this.tplExetime = tplExetime;
	}
	
	/**
	 * get模板渲染时间
	 */
	public Integer getTplExetime(){
		return this.tplExetime;
	}
		
	/**
	 * set用户名
	 */
	public void setUsername(String username){
		this.username = username;
	}
	
	/**
	 * get用户名
	 */
	public String getUsername(){
		return this.username;
	}
		
	/**
	 * setIP
	 */
	public void setIp(String ip){
		this.ip = ip;
	}
	
	/**
	 * getIP
	 */
	public String getIp(){
		return this.ip;
	}
		
	/**
	 * set创建时间
	 */
	public void setCreateTime(Date createTime){
		this.createTime = createTime;
	}
	
	/**
	 * get创建时间
	 */
	public Date getCreateTime(){
		return this.createTime;
	}
		
}
